<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>论文详情</title>
    <link rel="stylesheet" href="./content1.css">
    <link rel="stylesheet" href="./font_3469858_ajk27b39bnr/iconfont.css">
    <script type="text/javascript" src="/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript">
        $(function () {
            //获取url中的参数
            function getUrlParam(name) {
                var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
                var r = window.location.search.substr(1).match(reg);  //匹配目标参数
                if (r != null) return unescape(r[2]); return null; //返回参数值
            }
            var id = getUrlParam('id')
            $.ajax({
                url: "/thesis/" + id,
                type: "GET",
                dataType: "json",
                success: function (result) {
                    if (result.code === "1"){
                        var thesis = result.returnData;
                        $("#number").text(thesis.number)
                        $("#title").text(thesis.title)
                        $("#authors").text(thesis.authors)
                        $("#publishedTime").text(thesis.publishedTime)
                        $("#digest").text(thesis.digest)
                        $("#body").html(thesis.body)

                    }
                }
            })
        })
    </script>
</head>

<body>
    <div class="wrapper">
        <div class="header">
            <div class="headerleft">

                <div class="headerleftimg">
                    <a href="">
                        <img src="./img/4.png" alt="" class="img1">
                        <span>HalaDatab</span>
                        <img src="./img/3.png" class="img2">
                    </a>
                </div>
                <div class="headersearch">
                    <input type="text" placeholder="搜索你想了解的论文">
                    <input type="submit" name="" id="submit" value="搜索">
                </div>

            </div>
            <div class="rightone"><a href="">客户端</a></div>
            <div class="righttwo"><a href="">新手指引</a></div>
            <div class="rightthree"><a href=""><img src="./img/1.svg" alt=""></a></div>
        </div>

    </div>
    <div class="middle">
        <div class="middletheme">
            <p id="number"></p>
            <h2 id="title"></h2>
            <span id="authors"></span>
            <br>
            <span id="publishedTime"></span>

            <div class="middlebottom"><input type="button" value="阅读">
                <img src="./icon_4vgif0wwpnv/pdf.svg" alt="" class="middlesvg1">
                <input type="button" value="收藏" class="second">
                <img src="./icon_4vgif0wwpnv/shoucang.svg" alt="" class="middlesvg2">
                <div class="share iconfont icon-jiantou_youshang_o
">分享</div>
                <div class="quote iconfont icon-a-shuangyinhaozuo3x">引用</div>
            </div>

            <div class="middlebody">

                <h4 style="margin-left: 0;">摘要</h4>
                <p id="digest">

                </p>
            </div>
            <div id="body">

            </div>

        </div>
    </div>

    </div>
</body>

</html>
